package com.example.chongqingichms.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
@RequestMapping("/ich")
public class IchController {
    @GetMapping("add")
    public String add(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
            throws IOException {
//        IsLogin(httpServletRequest,httpServletResponse);
        return "add";

    }

    @GetMapping("edit/{id}")
    public String edit(@PathVariable Integer id, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
            throws IOException{
//        IsLogin(httpServletRequest,httpServletResponse);
        return "edit";
    }
}
